package org.example.spring.ioc;

import org.example.spring.ioc.controller.UserController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
@SpringBootApplication
public class AutoWiredTest {
    public static void main(String[] args) {
        ConfigurableApplicationContext ioc = SpringApplication.run(AutoWiredTest.class, args);
        UserController bean = ioc.getBean(UserController.class);
        System.out.println("bean = " + bean);
    }
}
